let appName = process.argv.slice(0)[3].replace('--', '');
module.exports = {
    // publicPath:"/blog",
	//多页面配置
    pages: {
        index: {
            entry: 'src/pages/' + appName + '/main.js',
            template: `public/${appName}.html`,
            filename: 'index.html',
            chunks: ["chunk-vendors", "chunk-common", "index", 'runtime~index'],
            title: appName === 'home' ? '菜鸡望的博客-Start with Hello World' : 'Ten.X后台管理'
        }
    },
    configureWebpack: config => {
        // 用cdn方式引入，则构建时要忽略相关资源
        config.externals = {
            "mavon-editor": "MavonEditor",
        };
    }
}